POV-Ray : Newsgroups : povray.general : Camera Question : Re: Camera Question Server Time
18 Nov 2024 21:19:55 EST (-0500)
  Re: Camera Question  
From: TinCanMan
Date: 14 Jul 2002 22:13:52
Message: <3d322fe0$1@news.povray.org>
> #declare Here=<0,0,0>;
>   #declare Long_Lens =camera {location -z*100 angle 3}
>   #declare Short_Lens =camera {location -z*50 angle 15}
>   camera {Long_Lens look_at Here}
> Here is the error that I get:

I'm not sure exactly what is the problem here but try doing something like
this instead:

#declare Long=yes;// no for short lens
camera {
  #if (Long)
    location -z*100 angle 3 //Long lens
  #else
    location -z*50 angle 15 //Short lens
  #end
  look_at Here
}


-tgq


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.